function NodeMoseOver(obj)
{
	obj.style.cursor='hand'; 
}

function ExpandNode(obj,imgPath)
{
	document.all("Txt" + obj.NodeID).focus();
	switch(obj.ExType)
	{
		case "Plus":
			obj.ExType="Minus";
			obj.src=imgPath + "minus.gif";
			document.all("Node" + obj.NodeID).style.display="";
			break;
		case "Fplus":
			obj.ExType="Fminus";
			obj.src=imgPath + "fminus.gif";
			document.all("Node" + obj.NodeID).style.display="";
			break;
		case "Lplus":
			obj.ExType="Lminus";
			obj.src=imgPath + "lminus.gif";
			document.all("Node" + obj.NodeID).style.display="";
			break;
		case "Rplus":
			obj.ExType="Rminus";
			obj.src=imgPath + "rminus.gif";
			document.all("Node" + obj.NodeID).style.display="";
			break;
		case "Tplus":
			obj.ExType="Tminus";
			obj.src=imgPath + "tminus.gif";
			document.all("Node" + obj.NodeID).style.display="";
			break;
		case "Minus":
			obj.ExType="Plus";
			obj.src=imgPath + "plus.gif";
			document.all("Node" + obj.NodeID).style.display="none";
			break;
		case "Fminus":
			obj.ExType="Fplus";
			obj.src=imgPath + "fplus.gif";
			document.all("Node" + obj.NodeID).style.display="none";
			break;
		case "Lminus":
			obj.ExType="Lplus";
			obj.src=imgPath + "lplus.gif";
			document.all("Node" + obj.NodeID).style.display="none";
			break;
		case "Rminus":
			obj.ExType="Rplus";
			obj.src=imgPath + "rplus.gif";
			document.all("Node" + obj.NodeID).style.display="none";
			break;
		case "Tminus":
			obj.ExType="Tplus";
			obj.src=imgPath + "tplus.gif";
			document.all("Node" + obj.NodeID).style.display="none";
			break;
		default:
			break;
	}
}

var oldSelectNode=null;
var oldSelNodeTxt="";
var oldSelectID="";
	
//Check Image For Folder Open or Close
function CheckImg(obj,strNodeID)
{
	var tmpSrc;
	if(oldSelectNode!=null)
	{
		tmpSrc=oldSelectNode.src;
		oldSelectNode.src=oldSelectNode.srcSelect;
		oldSelectNode.srcSelect=tmpSrc;
		
		document.all("spanTxt" + oldSelectID).style.color="";
		document.all("spanTxt" + oldSelectID).style.fontWeight="";
	}
	document.all("spanTxt" + strNodeID).style.color="blue";
	document.all("spanTxt" + strNodeID).style.fontWeight="bold";
	
	tmpSrc=obj.src;
	obj.src=obj.srcSelect;
	obj.srcSelect=tmpSrc;
	document.all("Txt" + strNodeID).focus();

	oldSelectNode=obj;
	oldSelectID=strNodeID;
}